-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge feat/next(v9) into main #351
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Cargo install wasm-opt and twiggy when installing rust
Merge main in feat/next
Bump version to v9.0.0
Use latest wallet package
Merge main into feat/next
Fix unit tests
Integrate latest packages
Merge main into feat/next & bump version
bogdan-rosianu
approved these changes
Nov 22, 2023
ssd04
approved these changes
Nov 22, 2023
andreibancioiu
approved these changes
Nov 22, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This new version of mxpy(v9) contains quite a few changes over the previous one.
mxpy deps
By using the
mxpy deps install rust
command rust will be installed system-wide. When installing the rust module, sc-meta, twiggy and wasm-opt are also installed.The clang dependency has also been removed. You can not install it through mxpy anymore. You'll have to install it manually, if needed.
mxpy contract
From now on, mxpy will use
sc-meta
for displaying the available contract templates and for creating a new contract using the available templates.For the
mxpy contract new
command:name
argument is no longer a positional argument, should be used as a keyword argument:--name
--directory
argument is no longer existent,--path
should be used instead--tag
. It is used to specify the framework version on which the contract should be createdFor the
mxpy contract templates
command:--tag
argument has been added. It is used to specify the sc-meta framework version referred tomxpy wallet
Two new sub-commands have been added for the
wallet
command group:mxpy wallet sign-message
mxpy wallet verify-message
mxpy wallet sign-message
This command is used to sign a message. It requires the
--message
argument and you'll also need to pass in a wallet that will be used for signing the message.When running
mxpy wallet sign-message --message test --pem alice.pem
the output will look something like this:mxpy wallet verify-message
This command is used for verifying a previously signed message. It requires the
--address
argument which is thebech32
address of the signer, the--message
argument which represents the signed message(in readable format) and the--signature
argument which is the message signature hex encoded.To verify the message signed above we can run the following command:
The output will look like this:
In case the message was not signed by someone with that address the output will be: